const {axiosFn} = require('./config')

//第一屏轮播图
let _GetSlider = (callback) => {
  const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg?uin=0&platform=h5&needNewCode=0&_=1526207923067'

  axiosFn(url,callback)
}

//第一屏分类歌单列表
let _GetSingList = (callback) => {
  const url = 'https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg?picmid=1&rnd=0.5389242671601067&g_tk=844366160&loginUin=1573199956&hostUin=0&format=json&inCharset=utf8&outCharset=utf-8&notice=0&platform=yqq&needNewCode=0&categoryId=10000000&sortId=5&sin=0&ein=29'

  axiosFn(url,callback)
}


//第二屏歌手列表
let _GetSinger = (callback) => {
  const url = 'https://c.y.qq.com/v8/fcg-bin/v8.fcg?g_tk=1928093487&format=json&channel=singer&page=list&key=all_all_all&pagesize=100&pagenum=1&hostUin=0&needNewCode=0&platform=yqq'

  axiosFn(url,callback)
}

//第三屏排行榜列表数据
let _GetRankList = (callback) => {
  const url = 'https://c.y.qq.com/v8/fcg-bin/fcg_myqq_toplist.fcg?g_tk=844366160&uin=1573199956&format=json&inCharset=utf-8&outCharset=utf-8&notice=0&platform=h5&needNewCode=1&_=1527162746307'

  axiosFn(url,callback)
}

//第四屏搜索页面热门搜索
let _GetSearchHot = (callback) => {
  const url = 'https://c.y.qq.com/splcloud/fcgi-bin/gethotkey.fcg?g_tk=844366160&uin=1573199956&format=json&inCharset=utf-8&outCharset=utf-8&notice=0&platform=h5&needNewCode=1&_=1527320857310'

  axiosFn(url,callback)
}

module.exports = {
  _GetSlider,
  _GetSingList,
  _GetSinger,
  _GetRankList,
  _GetSearchHot
}